100% statement coverage.

- Added specialisedCucumber scenario to detect an exception.
- Code cleanup to please Rubocop.