cleanup and text test