object creation error testing