update tests for py26 compatibility

I haven't noticed last problem on `py26` the `assertIn` is also missing in `<py27`. Changed.