Testing with mocks and ready status polling