replaced int64_t with Type, unified the precision of tests