init test and refacto