fixed bind issue in test