Add tests for user validation