Fixed broken tests after loading view was removed