ST|AD: added mocha tests