Fix makefile better for testing environment.