If the preferred decoration mode changes after the initial commit but before the surface is mapped, there's a chance that kwin can send a bad configure event, it's been the case in the past. Add a test to prevent such cases go unnoticed.