fixed test suite to work with perl 5.17

These tests where quite sloppy, in fact. I can be happy that they seem to have worked reliably so far.
prepared for release