[test] Add endpoint tests