[BUG #8608] updated mocha-based tests