WK-445 Fixed fatal errors during tests