Add tests/position_test.cpp.