Added simple worker example
Added tests and example for semaphore