remove test_backend; fix some behavior and some tests.