Added test relating to querying on multiple tables.