fixed mock backend and tests.