add task details query and test history level