use pytest rather than nosetest