core: dthread: almost all tests!

Signed-off-by: Eduardo Silva <eduardo@monkey.io>