random tests for the Cb module