Permissions, also better test scripts