implemented class list toggle with tests