You've introduced count here which has messed with test_gallery setUp.. easy fix though:
http://pastebin.mozilla.org/2158042