Add phpunit test for tables