[BUG #7947] Prevent that Widget.contains returns true when parent and child is equal
[BUG #7947] Add unit tests to ensure that the contains method return false when parent and child are equal