Added more user unit tests
Fix for user secret validation.