add test for ordered factors