add ui test directory. and add headless test tasks with mocha.