Fixed tests for new pi[0] = -1 convention.