Add unit test for the NamespaceManager class

Change-Id: Ia0497ae12983eaf4d4beea8ff17a29031dab3c52