Tests and code refinements in board module.