Completed DOM
Added Unit Tests for DOM