PHPUnit test for Worker