tests & cleanup