Fixed parsing and tests for Ruby1.9  Compatibility