Fix ApiStore.get('namespaces') and tests.