public void StatisticalAnalysisReturnType()
        {
            //Create Mock Data
            List<string>    tagsList = new List<string>();
	                        tagsList.Add("lewis");
	                        tagsList.Add("Shetlander");
	                        tagsList.Add("shetlander");
	                        tagsList.Add("Lewis");

            List<string>    creators_and_contributorsList = new List<string>();
	                        creators_and_contributorsList.Add("GUNN, John - M.A., D.Sc");


            //Create a mock model to pass as a parameter
                            BookModel model = new BookModel
                            {
                                azure_url = "http://blmc.blob.core.windows.net/1894/001544024_0_000191_1_1894_plates.jpg",
                                creators_and_contributors = creators_and_contributorsList,
                                date = 1894,
                                electronicsysnum = 014812388,
                                flickr_original_jpeg = "http://farm4.staticflickr.com/3811/11230026636_0021861570_o.jpg",
                                flickr_url = "https://flickr.com/photos/britishlibrary/11230026636",
                                fromshelfmark = "British Library HMNTS 012630.e.11.",
                                height = 1896,
                                idx = 1,
                                // This OCR Text is valid
                                ocrtext = "http://blmc.blob.core.windows.net/ocrplaintext/001544024_0.txt",
                                place = "London",
                                printsysnum = 001218010,
                                publisher = "T. Nelson & Sons",
                                scannumber = 000191,
                                sizebracket = "plates",
                                tags = tagsList,
                                title = "Sons of the Vikings. An Orkney story",
                                vol = 0,
                                width = 1256
                            }; 
            
            
            StatisticalAnalysisController StatisticalAnalysisPage = new StatisticalAnalysisController();
            Uri testUri = new Uri(model.ocrtext);
            var results = StatisticalAnalysisPage.frequentWordInOCR(testUri, "king");          
            int testType = 4;
            Assert.AreEqual(testType.GetType(), results.GetType());

        }
        public void StatisticalAnalysis_INVALID_OCR()
        {
            //Create Mock Data
            List<string> tagsList = new List<string>();
            tagsList.Add("lewis");
            tagsList.Add("Shetlander");
            tagsList.Add("shetlander");
            tagsList.Add("Lewis");

            List<string> creators_and_contributorsList = new List<string>();
            creators_and_contributorsList.Add("GUNN, John - M.A., D.Sc");


            //Create a mock model to pass as a parameter
            BookModel model = new BookModel
            {
                azure_url = "http://blmc.blob.core.windows.net/1894/001544024_0_000191_1_1894_plates.jpg",
                creators_and_contributors = creators_and_contributorsList,
                date = 1894,
                electronicsysnum = 014812388,
                flickr_original_jpeg = "http://farm4.staticflickr.com/3811/11230026636_0021861570_o.jpg",
                flickr_url = "https://flickr.com/photos/britishlibrary/11230026636",
                fromshelfmark = "British Library HMNTS 012630.e.11.",
                height = 1896,
                idx = 1,
                // This OCR Text URL is INVALID
                ocrtext = "http://blmc.blob.core.windows.net/ocrplaintext/002784427_0.txt",
                place = "London",
                printsysnum = 001218010,
                publisher = "T. Nelson & Sons",
                scannumber = 000191,
                sizebracket = "plates",
                tags = tagsList,
                title = "Sons of the Vikings. An Orkney story",
                vol = 0,
                width = 1256
            };


            StatisticalAnalysisController StatisticalAnalysisPage = new StatisticalAnalysisController();
            Uri testUri = new Uri(model.ocrtext);
            
            
           var actionResult = (RedirectToRouteResult)StatisticalAnalysisPage.Index(testUri, model.title);

                actionResult.RouteValues["action"].Equals("ErrorPage"); 
                actionResult.RouteValues["controller"].Equals("ErrorPage");        
        }