unit test for 2.0
add mocha.opts for mocha > 1.0