fix test too many error messages.

Change-Id: Ib0438d4adf9ab1238be8b92bdd260770af2fcd22