Fix test_mismatched_X test data deletion check

The assertion checking if data for an image is deleted correctly will
always pass. This is because it was using only the name of the file instead of
the absolute path.

Fixes bug 1177818

Change-Id: I8b99a4156ce72cb278c9c173a27253ab191dd451