Add "dom" extension dependency in tests