Added test for sharing via alias target name.
Removed bad code.
Merge pull request #37 from Danack/shareAliasBugFix

Share alias bug fix