Test script and dom