Minor change to reflect the object we're creating.
Found the missing code which I thought I'd added long ago to fix the issue with tests failing on travis-ci.