Define $crawlerFactory property
Added type declaration into unit test method