Added testing to core and fixed a few dependency issues on EventEmitter2

Signed-off-by: license2e <ilya@shindyapin.com>