TRIVIAL added tests and a fix for  parse_filepath