rhbz1002774 - minor refactor and fix HTextFlowHistoryJPATest