test for the full workflow