Dear Tobias, This looks fine to me. It does the things that you described and is well hidden behind the co-array associated conditions. Thus it is OK for trunk.
Maybe I am being stupid but what is the call, in the testcase, to subroutine test for? Cheers Paul