created factories file.rb and did user registration test