Fix full_name for import statements

Tests for full_name is refactored and added.  `.full_name` is tested against `Script.goto_definitions`, `Script.completions` and `defined_names`.  Bug for the cases like `from os import path` is fixed.