Add tests for the prediction worker