Fix assignment of block as actual value and not expected

As mentioned in #1420 the assignment of the block should be the actual value which has to be compared to the expected value in the argument list.