refs #8958 added a file check

The ofstream is now checked to see if it was able to open the file.
Refs #8958 Written unit test

SaveANSTO now has a basic unit test. Still needs a few more to push it a bit.