Fixed PREFIX in Makefile, added several tests in tests/