BUG: TestRenderView fails on some X platforms

TestRenderView fails on some platforms, reporting:
X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  73 (X_GetImage)

This patch changes the test to use the newer testing framework and
seems to fix the problem.

Change-Id: I7e85c2da6235c4bb7787659b8d9bc3681ea4b7a9
Merge topic 'Fails_TestRenderView' into master

83b0306f BUG: TestRenderView fails on some X platforms