Merge "Add negative tests for endpoints"