refacter rspec test for better multiple OS tests