U4-5589: Fix broken Angular app test setup

Various fixes to make the Angular app test setup work again.