Refactoring for the list images tests

* Replaced assertTrue's with assertIn/assertNotIn
* Fixed pep8 issues
* Removed detailed messages for assertIn/NotIn as
  these assertions provide very detailed output

Change-Id: I04173181e7e3773392aa16b021a2febd587aebd3
Merge "Refactoring for the list images tests"