Update initNamespace
Added test for initNamespace