rebuilt test with rspec