Adding filterLeaks() condition to not consider indices in global object as leaks