use local mocha
add test
introduce testem
add testem config for PhantomJS