test api for stats