refactoring tests half way through, got cubic error