bug fix: function had no return value in some cases, compiler warning resolved.
Addition to unit testing of destinations.