[bitcoin] [test] fixed the t.error statements