[WIP][issue #368] tests in progress