Fix make test and log output to test.log