port hash tests to opmock