fixed some compilation issues
added unit tests for new multi out changes