Unit tests for path()