Get convert function and tests