fixing bug in test case of standalone c++