Fixed the errors with print_table and the signal quality

I also added more tests in hopes of preventing future silly mistakes
like that.