fixed test and doc