Fix debug logging.
Add testing for ruby 2.0