Fixed bug if result property is null; added more exemplar cases