update on batch and tests

added more tests, fixed a bug when there are more tubes in the order than in the batch