Implement test and run target in makefile