Add some decent tests.