Added tests for tables