building up unit tests.
Got rid of magic number in BuildDestinationUri
Replaced a custom exception with built-in type
Moved parsing exception throw to lower level function, where it should be.
Improved tests. Some code refactoring
2 unit tests for BuildDestinationUri.
Merge pull request #4 from hpence/develop

Unit tests for BuildDestinationUri and its sub-functions