add constructor for file object mock