Moves the ListAppender class from codjo-agent to codjo-test

## Context
The `ListAppender` class wasn't specifically related to `codjo-agent` but was part of it.

## Description
- Moves the `ListAppender` class from `codjo-agent` to `codjo-test`.
- Uses the `LoggerRule` class for checking log4j messages, instead of using directly `ListAppender`.