Fixing backend tests