Added test for missing URL parameters when API method support multiple dynamic urls based on date or time period.
General cleanup in api and test code.