Improve ambiguity warning test coverage and avoid ambiguity warning for example directories