fixed unit tests for transitions refactor. WIP medic/medic-webapp#714