defining magic number in unit test for abnormal task termination