JAL-1769 fixed headless execution mode and created test for all possible outputs