added tests with rspec