Added getTables info and tests