Replace nose tests with py.test