Use a transform method to map attrs from API
Update existing tests for new API