fixed test under py3k
fixed argument oreder