Added test for List class