Modified tests to log in as user