aded surveydetail unit test and converted from int32 to int64 (long)