modified selectStatementTest