Initialize context by default in toe; fix test case crash