Move hash tests to the test framework