Change getName to getPath and add a test to verify default settings.