hashes support locking now, fix test code