perl: add sanity checks to t/perl/test_input_with_offset.pl
Merge pull request #570 from avar/avar/add-sanity-check-to-offset-test

perl: add sanity checks to t/perl/test_input_with_offset.pl