executor: Add unit test for executor