Fix SELECT stmt test cases