Correctly normalize absolute paths so locking works on windows
Make all tests extend the new \Test\TestCase
Use a static class variable instead of function internal and always create dir