Py3k: fixing 2 more core tests

* ensuring order for resource identifiers
* str is now of type future.builtins.str, therefore compare with ==