add api to nosetests