Fix console unit test

Change-Id: I9871f583edf95a1ba9b6e9e1c42968b253331cbc