Add tests for `astMatch` assertion