optical plugin: complete test coverage

Also add missing .uitest

Change-Id: Ic224a6476c87ea3672cf19444ae9823c2451f05f