Add tablelayer and related tests.