Cleanup and high level tests.