added error test for call service when header is false