Added permissions tests
Optimized validation procedures with recursive_replace function