Added gate tests for hi-z and undefined states.
Added NOT gate tests.
Corrected NOT gate output for hi-z input.