merge_table.pl: fixed stupid code on first test (removed loops with one
		iteration) and wrote final agrade when stude has done
		just one test.