use generated api in m2m test