Unit test for algo train endpoint