Fix test_b2oc
Implemented the functionality needed by test_b2oc, and fixed the related test. This includes the functionality to check that we have the correct number of sample, as described in #1 (closed), therefore fixes #1 (closed)
Edited by Ben Couturier