Fix validate URL path in unit test and fix package in another unit test.