pkg/libcoap: fix build AND tests: add one to ensure it does not break in the future