Fix BuildInvocations test.