fix compatibility with ruby-1.9.3
tests for line number in error message