Fixed permission unit test