refactor testReturnOfEmptyString