test the preview