Add 2 unit tests.

One where the ref doesn't exist in the context, but you pass a static string for the param value.

The second where you reference include another template that has the blocks, and then you call that block in your source.  You can include previously defined tests as partials by their name.