Added mock_api that echoes sent params