Add unit tests for square_t

This commit adds unit tests for model/square.c.  Next up is
unit tests for model/piece.c