refactor pythag tests, not done