move ImageRepositoryTest out of the Cms
fix image repo test namespace
test permission repo