add mocha and jasmine test support