api now also works in tests