Refactored tests around new login design