added setup to mock observer