test target and cleanup