added feature for testing permissions.