Squash 5 commits

fix channel/stream output mixup, return core and add basic test
close metadata
fix return code + validate trace multiple events
test files
enable all tests

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>