Restored and refactor tests for list.