add rspec and cucumber test for register feature