Added p^2 - p + 1 test.