I guess the destructor should be defined in .cpp, because you have following data member: scoped_ptr<ApiTestNotificationObserver>
but ApiTestNotificationObserver is not defined here (just forward declared)