WIP first pass translate of functions.
Adding tests for function translation