Tests for LeftFunctionCache

New cases and bug fixes. LeftFunctionCache introduces new dependent
view.