cleanup test target, print function