consider parameterizing these tests as they all seem to be duplicated for white and black  param would be white  black also the comments seem like they belong above the test f instead of inside the test body