LUN-1260: a new test case (integration test) - version 1 + small refactoring