Better login in test classes