Add tests for removePath