Replaced add_log_callback and add_activity_callback to boost::lambda. Added test4 for testing this changes.