tried to fix tests (yet with mocha - next step is moving to karma)