The test code works now with the updated API