Fixed JavaScript unit tests for file attachment thumbnails.

The file attachment HTML changed a bit, breaking some assumptions in the
unit tests. This updates the unit tests for these changes.