Moves 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 `ListAppender` class from `codjo-agent` to `codjo-test`.
- Uses `LoggerRule` class for checking log4j's messages, instead of using directly `ListAppender`.