clearup printf and test code