Tabulate

Add basic padding and tabulate tests. Some small tweaks. (Similar tests and code appear in Ruby client).