javascript tests for API endpoints
merging