BATCH-2267: fixed compiler errors in test class