spend test over api