Memory management, plus simple tests.