Fixed bug where on-remove event fired before the selected array was updated.
Fixed bug where on-select event fired before the selected array was updated.
Fixed tests of select/remove bug fix.