Implemented the fortune testcase