Fix checkout error issue and add tests accordingly.

Backend get "attendees" as a string from frontend, like attendees="1,2".
The string should be converted to array firstly before loop each user.The issue is caused by
Merge branch 'hbzhou' into dev