These are unit tests in which we hard-code some shapes (size, position, and rotation) then run the collision query and check to make sure they collided (or not) as expected.

In this particular case the 0.99 * (distance) is used to put the shapes just slightly into penetration (at exactly 'distance' they only touch at their surfaces).  We then error out below if the collision query returns 'false'.