Added transition rules for Warning and Action states along with tests