permission and tests update