Update test requirements

Add `tox` and `flake8`.