Issue 12220 - hash.get() does not accept proper parameters

https://d.puremagic.com/issues/show_bug.cgi?id=12220

Add a regression test case.