Improve testing

- [ ] add flake8 to travis
- [ ] add packet testing
- [ ] add sample data testing