Improved unit test for long running executor