Fixed assert error in test_code - list order issue on different machines