BaggingMachine unittest fixed and extended