added test for isEmpty method of collections