Added tests and fixed defaulting of input binding for selects