add dome unit tests - need fix: they're passed only 'most of the times'