use RSpec custom matchers and helper methods to simplify integration tests