Avoid issues with dictionary keys ordering when running tests, this is to make tests pass on py3.3
More tests depending on dictionary ordering
Fix directory not being removed after test when running on py3.3
do not expect parameters to be encoded in any particular order when generating links
test on py3.3 too, all tests should be passing