Added spec for object expectations.