Remove duplicate code from SQLContainerTableQueryTest.

Change-Id: I28d62fe77db5b66d80f1c62690ef0725fc305cd5