add tests and support for @import inlining