Fix PreviewTaskTest

Change-Id: I57bb210ed99c394ae18d9294f8519e92f2ccbd33