Refine the tests for FileAPI URL