Dumps log when error occurred
should.be.eql -> should.eql
Added core test