Move tests from Docs to Code.

Currently this is just a test file, with no logic or assertions.
Currently thinking up a format for assertions and description.