Test refactoring, notes, simple test

- test for undefined data/querystring/resolve
- move test helper functions to the support directory
- some more notes of stuff to test in the readme