test basic select operation