Convert retry-after header in seconds

Previous implementation passed the value through as string, but it makes more sense to convert it as integer as soon as it's received.  Add test coverage for this case extending an existing test.