implemeted TestBag class