Lock Rubocop version and make it happy

- Disable PerceivedComplexity check
- Fix minor issues in tests
Merge branch 'lock-rubocop-version'