Correct test case spec/output/file.rb

Trying to execute the spec for output/file, I got two small issues:
- The Logstash::Event.from_json class method was unavailable since 1.2.0
- test code not in sync with 1.2.x

here are the fixes.
On JIRA side, I will close LOGSTASH-997 as cannot reproduce.