Added isEmpty test