Move analyst tests out of batch.py
Add analyst.test_inference back in to batch.py