fixed accept_patient_reports test WIP medic/medic-webapp#714

use new transitions callback API, use callback() instead of
callback(null, false).
refactored transitions lib for testing and updated some tests. WIP medic/medic-webapp#714