TEST: added test of BagObj