added AMD test support with karma, mocha, sinon, chai, should, expect & istanbul