Fix test error and add tox.ini