LPS-35674 Adding test for bug fix

Re-sending because the PR got closed due to a totally unrelated problem.