test: fix some warnings found with "ruby -w -c"