Removing unused query
Adding update permission test