[feature] endpoint unit test