Fixed assertQueryContentContains to check all nodes found