Unit tests for thumbnail helper