added sample test code generation to makefile