server test metthod bug fix