Note that all the predicates (including helper predicates) between
end_tests(foo_name) are stashed into a new Module called
plunit_foo_name, at least in the present implementation.
So you may get all kind of weird errors when you reload source code, like:
module/2: No permission to redefine module `plunit_foo_name' (Already loaded from /home/whatever/foo_name.pl)
At that point, just restart the Prolog Processor and reload everything.
One day, this pain will end.