Updated test to check IsEmpty