Client unit-test setup, unit-testing for viewevent