add media test cases and fix for issue #24 (but nested format output is slightly broken)
a mixin can have a non-block in any position