Add test for weird ambiguity case.