added tests and documentation for tabs