Added tests for mocking `inNamespace()`, `getNamespaceName()` and `getShortName()`.