refactor GoInspectionTestCase, make doTestWithDirectory() private and ch...

...ange the base path of directory test cases to the directory

The refactor which talked in #994 has been done in this pull request.