Test of adding objects to collection