pending tests crash mocha

it seems test.title is sometimes an object, which is not a string and fails since there's no replace method on an object. toString() fixes the issue.