moses: fix off-by-one bug in the select unit test.