Add test targets at superproject level.
Log build log into a file.
Correct bug.