Export 'camelTo' function and fix its tests