Fixed file testing with empty string