Fix unit test
fix permission validation
Added limit to the number of elements added with sonata_type_collection