Fixed document domain test to change it on load.