Fixed linting issue in previews test