use app_context
test history on travis