Describe your approach to writing comprehensive unit and integration tests for a newly developed API endpoint at Stem.