add testcases as submenu of use cases. clean up code