Add test case for iterating with namespaces.