call getfd function not method
fix bindat in tests