Added inline test and fixed Makefile.