Added rudimentary tests.