[minor] Adding debug output
[test] Added primus-emit as a dependency
[test] Fixed test