update dependencies and refactory test