add nightmare tests with mocha and chai