Fix chmod for tests