Writting makefile and unit tests