cherry-picked from master -> added getTestRun to APIProject