public void ProcessOldClusterLocationsTest()
        {
            using var scope = _factory.Services.CreateScope();
            var clusterService      = scope.ServiceProvider.GetService <IClusterService>();
            var crossedpathSservice = scope.ServiceProvider.GetService <ICrossedPathsService>();
            var database            = scope.ServiceProvider.GetService <IDatabaseEngine>();
            var userService         = scope.ServiceProvider.GetService <IUserManagementService>();

            user.Email       = "*****@*****.**";
            user.FirstName   = "anoroc";
            user.UserSurname = "asd";

            if (userService.UserAccessToken(user.Email) == null)
            {
                user.AccessToken = userService.addNewUser(user);
            }
            else
            {
                user.AccessToken = userService.UserAccessToken(user.Email);
            }

            clusterService.AddLocationToCluster(new Location(37.4219984444444, -122.084, DateTime.UtcNow.AddHours(-5), true, new Area("United States", "California", "Mountain View", "A subrub")));
            clusterService.AddLocationToCluster(new Location(37.4219984444444, -122.084, DateTime.UtcNow.AddHours(-5), true, new Area("United States", "California", "Mountain View", "A subrub")));
            clusterService.AddLocationToCluster(new Location(37.4219984444444, -122.084, DateTime.UtcNow.AddHours(-5), true, new Area("United States", "California", "Mountain View", "A subrub")));


            var locations = database.Select_All_Old_Locations();

            var oldCluster = new Cluster();

            locations.ForEach(loc =>
            {
                oldCluster.AddLocation(loc);
            });

            oldCluster.Structurize();
            database.Insert_Cluster(oldCluster);

            var initialcount = userService.GetUserIncidents(user.AccessToken);

            crossedpathSservice.ProcessLocation(new Location(37.4219984444444, -122.084, DateTime.Now, false, new Area("United States", "California", "Mountain View", "A subrub")), user.AccessToken);

            var newCount = userService.GetUserIncidents(user.AccessToken);

            Assert.Equal(initialcount + 1, newCount);
        }