Added select function
Removed redundant test