add tests & fix string interpretation

closes #2