Cleanup test and move thumbnail styling logic to helper.