improved documentation tests