more where tests, fix bugs
more select tests