Make ImageMetrics test voting, add qunit

Depends on I133906f0d139b35b6039415dbf8c3807efd6e6e8

Change-Id: Ic589ae3392dc9494116c2e96517a03778a4e7c39