cleaned up test for view containing a child view