adding testcase framework Fixes #9