Added unit tests for board and fixed some bugs I found
while testing.