Add test for function argument as method call

If a user provides function arguments to a transformation function such
as translate, that function will be invoked as method on the current
selection. Add a test for this case, simulating a seleciton with a
JavaSript literal object.

Tests pass.