Added testcase for red code example