added testing framework and sample test case