add test for bug #25
more tests for bug #25
fix string conversion (bug #25)