pkg: add chai-spies testing dep
lib: remove emit, add handle to allow for custom emit logic
test: test for handle