add in tests for file permissions