Add tests for referenceview

Change-Id: Id3fddb6775d4e550ed25fdcb2087d484fa95b363
Merge "Add tests for referenceview"