Fixed fetching instances from "Projects/org.netbeans.gradle.project/Lookup".
Added tests for fetching instances from "Projects/org.netbeans.gradle.project/Lookup"