Fixed makefile based test not working correctly when using make test
instead of ./test/test.