Fix test runner and hash tests