Added test for auto-instantiation with namespace