Move hash tests to separate package