created unit tests for the previewController