add mocha and chai
add tests for the explicit error states