Fix select bindings and related tests