add test for newStyleFromCurrent()