handle invalid transition gracefully spec