fixed tests, some code clean up
added some tests for outbound channel adapter