LPS-43172 Test - Modifies the test to check the query when type_ is not null