often app.origin was returning ZLS and hence each item in apps{} was being overwritten by the last one.
The unit test never picked this up because it only asserted that there was one item in runningApps whch also was conveniently the last one!
(just try and revert this and run the new launch test to see the old bug).