Fix `options.maxAge` and add integration tests