Feature/ase

Take permissions into account for mref test