Added tests for printAll.