Improved testExecuteStatement