Create a custom Mocha expected_parameter matcher

Comparing JSON strings is unpredictable since key ordering implementation
varies between Ruby versions. This change ensures that we are comparing
between Hashes and not their string represenations.