migrate invoke.py from Makefile (in progress)
add more testcase