improved testing output

table name is printed above tablediffs
output to any output stream not just std::cout