tests fixes
added mocha running script to `npm test` command
coded classes to satisfy tests