Fixing tests
Use parentNode instead of contains