Started writing some tests.