Fixed typo in test_api