Database unit test changes and redirect when signed in