Make sure history created before status changed to FINISHED.
Merge pull request #23 from NFLabs/make_session_manager_test_more_predictable

make JobManagerTest more predictable