Return with error count as exit status.
Fix typo
Changes to feature tests to cater for non-zero error codes