Added test for replace_extension.
fixed split_path test for zero length inputs.