add select_variables and tests for drop_variables