Adding tests for the preview page