fix some tests, but still problem with permissions