rspec test for autopair problem