more tinlib work & test infrastructure