Namespace Additions

This PR improves testing of namespaces by extending and running the PoolTest suit with namespaces set for each test.

In addition this fixes the bugs found by doing that :-)