Fix importing

• Fix bug in importing
• Add unit tests for importing
Merge branch 'master' of https://github.com/impossibl/stencil