Added tests for DomElementProxy and made some minor modifications to the API.