add tests for captures in assertions