added makefile and test cases for commandline variants