Documented functions implemented directly in test file to avoid a weird compiler bug.
Added tests for get, hasKey and pop. And some minor refactoring of those.