Add a test for the case where the path has no "." in it + handle the error here