Fix candidate for #37

Fix candidate for false negative with following error
TypeError: 'null' is not an object (evaluating 'currentSpec.expect')