gdk3 test: check whether valid object instead of just checking class