unit tests for file object
adding unit tests