Added chmod to tests