Move backend-adaptor.test specific helper function from global utilities to the test itself