Fix a bug introduced by another patch

Fix a bug introduced by patch 927. Also add ui tests on work_order_optical-slave.

Change-Id: Ide54088400c798067231b99e683514df483fc676