Fix clean target for test modules and idempotency