Added tests for IsEmpty.