Add test for isEmpty.