integrated rspec for testing