Fix double printing from duplicate code
Add CSV logging to CountOnesTest, FourPeaksTest, and KnapsackTest