Write tests and fix regression where an @ensure doc tag would not be parsed if it included a period at the end.