add method getOptions() in FileDescriptor + add test cases