Fix unused variables 1/2: add more asserts

Add test asserts for some unused local variables to make test better.

Change-Id: I8c830b4680a2ffe8bf1b7cbd44cd1dce5b27c919
Merge "Fix unused variables 1/2: add more asserts"