Refactored and added test functionality to tb_render testbench