Add tests for invalid paths