port diff test to rspec and fix it