add tests and rails
first test and model