Adding batch predictions and tests to the api interface