Split backend into modules
Split backend tests into modules