Run tests through forbidden apis

Check the tests for forbidden api's.  Start with simple URL#getPath and URL#getFile that have issues accessing resources with spaces in the path.


This PR has #5950 merged in.