Change tests to match nosetests requirements