Add factory for building transformer functions.
More sensible test Jamesfile.