+ added test case for file class
+ added open function without mode