adds conditional for debug to make sure tests pass
adds test script and chai as dev depencie
kind of made a test suite, stubs the emit(flush) method