fix #171 #170 add selenium test and add destroy method in bind