added multiprocess for registering worker as online and unit tests.