thanks to Toran, got dom writing working in the view test.