switch to py.test and fixes tests.