type doc and test