added test for bug #7058, and related embed problems