add core tests
Merge pull request #267 from wise9/feature/mocha_core

add core tests