Refine error message in import declaration parsing.
Tests. Add negative test cases for import declaration parsing.