Added clear() and isEmpty() for List, and corresponding unit tests