Use be_a matcher rather than matching the class exactly.

On travis ci, these values have been Bignums, not Fixnums, for some reason.