tests for user registration