Tests and cleanup.