Add bounds-check assertions

Added some assertions to bounds-check returned lists on the
test_flavors tests

Change-Id: Ia3b7c7e5a864c0f448999a4cc304a578bdd6a1df
Merge "Add bounds-check assertions"