Deferred initialisation of object properties for unit tests