fixed bug and added test for case when pods have same name in different namespaces