Refactor factory tests and remove useless coverage
Update dependencies