enabled build tests and fixed test makefile issue