Use default methods to reduce code duplication for TestBinding.
auto merge of #2325 : Ms2ger/servo/testbinding-default, r=jdm