testing transitions. problem with wait