Added first worker unit tests and check_worker_fields function for infrastructure.