LPS-34172 - Write the Unit Tests for while elements