add RegisterNamespace and GetNameSpaceIndex methods.Add more  tests for null pointers in OPCUAServer