unit tests fixed

new TestRenderer class added
for testing without console!