Fix some tests
Change resource -> file in URLs
Remove an apparently unneeded line
Add a test