fix DataInput NPE issue
fix search test