Add test for the ambiguous selects with the dynamic behaviour