fix preview test