added test for empty lists