fixed tests
[BUG #8850] migrated demotests to mocha