WIP: tests

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>