Added prefix sum test case