Fixing undefined method call in APIDataTest