mobileAuthentication tests and improvements