extended test and doc