Add test to build project with target specified.