fixing bugs getting libtest working again