Test language API when language code is None

Also includes minor docstring and function name changes