fixed generated string order error in unit test