Test coverage for useSecureRandom method
Removed unused use statement
Fixed code formatting
Added test cases for email authentication