fixes #8
add test for #8
also allow passing array for link and forcing an array
Merge pull request #9 from chadkouse/Fix-8

Fix 8