Adding tests for PathPattern