registering user and tests