Fixed test code, now draws triangle correctly