Fixing issues brought about by upgrading Mockery

Due to a change in the way Mockery returns values from shouldIgnoreMissing(), some tests broke. This fixes them by adhering to the new usage (rather than reverting to the old behaviour)