Make explicit char * -> string conversion in test helper

The version of clang on travis-ci seems to not allow this
conversion to be made implicitly