Fix pipeline instance state tests.