test(unit): move unit tests into modules