Fail tests on Rubocop failure

Fix for #490.