update rspec tests to cover basic use cases in new API