LUN-369-tests -- unit test for LUN-368

unit tests for LUN-368