Rehabilitate Mocha tests

Note this includes commits from the [ui-components-test-architecture-bower](https://github.com/opf/openproject/tree/feature/ui-components-test-architecture-bower) branch.