add test before transition