Merge "Add hooks to avoid collecting code for run-tests."