Added test case for null endpoint