Refactor CTF Writer test

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>