tests/codegen: added pass_merge_sort
tests/codegen: fixed outputfile of pass_globals