Added test case for #1006
Fixes #1006
Merge pull request #1009 from bronze1man/pr-test1

Test cases for #1006 #1007 #1008
Fixed #1006 completion test case and unmarked
Some small cleanups.
Renames
Added resolve test case for #1008
Cleanups
Closes #1008.

Fixed some other tests too
Fixed parsing of embedded imported interface (and resolving implicitly).
Removed an obsolete import test.
add test cases for close,len,panic for FunctionCallInspection