Test failed and corrected for empty string