tests: Add tests for rules/warningsᵒ rules

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