Implement pawn formation evaluation and tests.

Refactor tests slightly.