First pass at writing tests.