Collected up the codes of endpoint test.