JRM Handle case where path is empty (added test)