added a test for empty item list