Added spec for shared instance with custom initialization