Make test more robust (don't hang on test project compile error 
but fail fast instead).