fix 2 failing tests and add programmatic support for backend