Add test checking how working with multiple tables.

Currently fail when several tables are used in the same sqlite file.
This causes problems for plinth.