Complete tests

Correct view with yield local variable and add test with variable in block