replace test with rspec.