Quickly fix a broken doctest

test_semi_infinite should now handle words which are above the basis
provided.