added check after each test to ensure user logs in if user had been logged out after Print.