Add task to get a preview + tests

Change-Id: Iad4b6d1d13ad534f81afd751d4bad609d980123a