Modifications to test cases to ensure python 3.3 tests don't fail due to python 3.3 changes (primarily randomisation of the hash function)