Export expected_errors to metafiles

This patch added fake method that can catch the expected_errors from
invoked method. And export that into metafiles.

Change-Id: I07a6dc45cd467772c0f252f55ba8d92c5c0a5065