Fixed a typo.
Began adding tests.