fixed  outcome action processor if func
removed logging
added test, outcome actoin is a function