More tests for @scalarfunc