Adding rudimentary tests. More tomorrow...
Adding more tests.
Adding more unit tests.