Add testcase for issue #7
Explicitly support using hash-table as context. Fixes #8.