Add tests for functions and user types.