IDEX-1126: write unit-tests