clean up testing code