update serverspec tests for serverspec 2
Rubocop 27 fixes