Added tests for constructor from String.

Related to issue #84.