added tests
fixed key=0 issue in api_quote