ignore invalid package references in tests

Also updates lint exclusions of external projects.