Issue #407, compileFn does not require a name. Add unit test as well

name should be optional for compileFn