Added tests and extracted helper methods for board constructor