test cases
improve Context parent handling