Move tests directory out of hospital package.
Fix flake8 failures.