Added test for smart embeds