Refactor TestParse
Implement GetKey with tests

working on #1