fix application test context bug