Improved login test.