Add tests exposing bug in is_hash.
Fix is_hash
Add extract argument shuffling with tests.