clean and fix thepeg tests