added test for empty