Create and remove directories before and after tests
Various tweaks
Bump dependencies