Removed unneeded functions from HashResult model
Added test for writefile