LPS-46822 add tests to ensure the operations are executed in the right order