Fix RefVarLoader
Add tests for body assertion using ref var