rspec tests for models and lib