optical plugin: Add ui tests

Change-Id: I18bac1f4b433001e190b43b8b2e565c16023f76c