tests: Use tap automake testing scripts, fixes output summaries

Also updated the unit tests so they don't fail with the new tap system