WIP: Most unit tests.