Added test for passing in string.

Fixes #3