Fix and enable test for passing hashes to Python methods