Explain how you would write a test suite for a newly developed API endpoint to ensure edge cases are covered.