api stat test and model fixed - Fixed #81