unit-tests: Added test-der-encode-decode.