end-to-end test for training