fixed string handling in test