Add tests to check the preview controller and route