Fix test empty string.

Use isEmpty() insted of != "" .