Add test cases to verify that the object return type of Model.between method is correct for both AR and Mongoid