DAR-1184, fix unit tests after changing error handling logic in UIfactory