Fixing doctest of towsp method by including type(wsp)