add rspec for testing