Adds tests to help develop sanitize(), which doesn't exist yet
Adds sanitize(), nothing uses it yet. Testing for main package is now at 86%, including sanitize (which is 100% tested)