Add a test for the on-the-fly creation of import elements

For now, only one scenario regarding the relative location is tested.
The coverage could be improved by adding tests for different scenarios
similar to testImportLocation... (e.g. parent or nested folder).
1 file changed