Fixes, Not-Gate and some rendering tests