Add lots of tests on tabs.
Add support for tabs. (WIP)