tests: extract backend autodetection test to a separate file