Test converting interval strings to seconds

and more tidying