fixing one more bug and adding appropriate failing spec
API edit_path method