Add tests and examples for namespace subscriptions