tests mostly pass
passes tests, generated complete document