Fixes #502 - Add unit tests for normalize_api_params