added mocha, started writing tests