Adds check for test user being logged in