Fixed a few unimplemented functions.
Started writing "real" tests.