Fix _tables_used in sim to convert tuple to list
Add more tests for simulation framework