Added expected_data parameter to register_uri

This checks that POST payload received matches the one expected. This is
very helpful for improving robustness of some mocked tests.