ArrayList error in test