Refactor generators from board-test into separate ns
Test position serialization roundtrip, fix bug