add JodaTime dependency for debug purpose
add State_complete in triggerstate
try to fix unit test