add tests for collect pass