Added tests for new api call