Add tests for select all behaviour when not using a table alias