Fix test for null object