unit test refactoring to modularize context and resource creation.  move egest and ingest to outgoing and incoming respectively. refactored each to handle error handling and exceptions. refactored watch to integrate with context.attributes