Test does not check which one of these two calls is ambiguous overload. I assume first call is good, and second is failure. But test would incorrectly succeeds even if first call fails. I think test should be split into two tests.