implemented Emitter tests
added getfirst exception test