adapt existing tests to last commit and add test for java.net.URL instance