Http mock testing and integration