Write tests for auto table layout