duplicate-modified version of the test