fix conditional context test case with void