ALM-652 fix tests
ALM-613 adjust test to confirm we stored ids of history documents