Nest Unit tests inside of function for login. This way we can ensure they are called synchronously after the login. Will cut down false errors sometimes only seen on first load of page.