Added testcase.
Added gif support.