compare c.ret_url to empty string instaed of None

pylons retuerns empty string for non existant attributes
Use AttribSafeContextObj for tests as MockContextObject

This makes the test suite behave more like the actual system