Correct tri-state handling in testbench, but still does not work
Adding some timing measurements, minor improvements