test code cleaning