change tests to use nocks