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.

User Story #5159