#5: Added functional test and helper for logging in.