test: add test for waiting of proxy job