Fixed board bugs & added tests