fix permission and all tests pass