added test for chair sorting