Rspec model register method for test