GUI-1043: Fix unit test