Lock Rubocop version and make it happy

- Disable PerceivedComplexity check
- Fix minor issues in tests