test for addSelect method.