Pass current generator to tests
Merge pull request #23 from smspillaz/cmake-unit.item_21

Pass current generator to tests