[WIP][issue #369] tests added