Changes and bugfixes related to backends and testing.