Fixed unit test and added small test for isEmpty(Collection).