t/issue245.t revised. passes with threaded perls and <5.10

improve and simplify testcase