adding permissions and tests