fixed error reporting related to previous fix for Issue 1245
added ambiguity test case for issue 1245