Fixed select and schema test