modified tests to conform to new DOM expectations, added new test