rspec function for testing order-independent array equality

These tests were failing on my dev box due to order differences that did not matter for what was being tested.