Improve structure setting tests for RS.

This change also adds a custom RSErrorHandler for tracking exceptional cases
from the driver.

Change-Id: I5cfc67aa880a4091583fbc2dd0330fc5df80d16b
3 files changed