fixed permissions
fixed tests