fix some warnings reported by ruby -w
test: update common setup file

This adds debugger integration for minitest, for both 1.9 and 2.0
if TEST_DEBUG is set to 1. It makes minitest drop a pry session when
a failure or unhandled exception is thrown.
Merge pull request #1 from rock-core/test_update_common

Common update to ruby tests