rename test to tests
Makefile refactor, stricter compile flags