Aviation trials are being carried out by crews aboard a Royal Navy flagship.