check output by 'contains' method