Tests: Refactor

Divide tests into 2 folders: core and options.
Use mocha programmatically.
Add test helpers: `readFile()`, `shouldBeEqual` and `shouldDetect`.
Tests: Use mocha.js for test coverage