refactor testcase reading module