Migrate to py.test.
Merge branch 'tests-rework-on-py.test-130530'